
import UIKit

class MYShopCategoryTableViewCell: UITableViewCell {
    @objc var categoryModel = YQPGoodCategoryOneModel()
    @objc @IBOutlet weak var titleLb: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        self.contentView.backgroundColor = selected ? UIColorFromHex(rgbValue: 0x79C4C7) : .white;
        
        self.titleLb.textColor =  selected ? UIColor.white :UIColorFromHex(rgbValue: 0xA0A0A0);
    }
    
    @objc func setModel(_ model:YQPGoodCategoryOneModel)
    {
        self.categoryModel = model
        self.titleLb.text = model.name
    }
}
